package cn.xxm.strategy.pay.i18n.response;


/**
 * 响应信息
 */
public enum UserResponseInfo implements ResponseInfo {
	/** 200001-isRiskCountry：ip对应国家为风险国家 **  **/
	IS_RISK_COUNTRY("200001","isRiskCountry"),
	/** 200002-：notGetIpCountry:未查到ip对应国家 **  **/
    NOT_GET_IP_COUNTRY("200002","notGetIpCountry"),
	/** 200003-：imageUploadFailed:图片上传失败  **/
    IMAGE_UPLOAD_FAILED("200003","imageUploadFailed"),
	/** 200004-：queryUserImageFailed:查询用户图片信息失败! **/
    QUERY_USER_IMAGE_FAILED("200004","queryUserImageFailed"),
	/** 200005-：imageDownLoadFailed:图片下载失败! **/
    IMAGE_DOWNLOAD_FAILED("200005","imageDownLoadFailed"),
	/** 200006-：cardAuthFailed:卡鉴权失败: 请检查银行卡、手机号、身份证或姓名是否正确! **/
	CARD_AUTH_FAILED("051804","cardAuthFailed"),
	/** 200007-：smsVerifyOtpFailed:短信验证码输入错误，请重新输入 **/
	SMS_VERIFY_OTP_FAILED("010003","smsVerifyOtpFailed"),
	/** 200008-：updateToaFailed:该手机号在本平台已被使用 **/
	UPDATE_TOA_FAILED("200008","updateToaFailed"),
	/** 200009-：flowError:请重新按正常流程操作 **/
	FLOW_ERROR("050100","flowError"),
	/** 200010-：mobileExists:手机号码已注册 **/
	MOBILE_EXISTS("020100","mobileExists"),
	/** 200011-：userIsNotExist:用户不存在 **/
	USER_IS_NOTEXIST("030108","userIsNotExist"),
	/** 200012-：comparisonBankMobileFailed:新手机号与绑定银行卡预留手机号不一致 **/
	COMPARISON_BANKMOBILE_FAILED("200012","comparisonBankMobileFailed"),
	/** 200013-：mobileIllegal:手机号码格式不正确 **/
	MOBILE_ILLEGAL("200013","mobileIllegal"),
	/** 200014-：mobileNotExist:该手机号未注册**/
	MOBILENO_NOT_EXIST("200014","mobileNotExist"),
	/** 200015-：closeAccountLogin:该账户已销户，请重新注册**/
	CLOSE_ACCOUNT_LOGIN("020111","closeAccountLogin"),
	/** 200016-：bankcardAlreadyExist:银行卡已存在**/
	BANKCARD_ALREADY_EXIST("051803","bankcardAlreadyExist"),
	/** 200017-：towncardAuthFailed:暂不支持村镇银行银行卡，请换卡重试**/
	TOWNCARD_AUTH_FAILED("200806","towncardAuthFailed"),
	/** 200018-：cardSupportFailed:只支持I类户绑卡**/
	CARD_SUPPORT_FAILED("200803","cardSupportFailed"),
	/** 200019-：cardFlagAuthFailed:卡号未激活，请重试或更换其他卡**/
	CARD_FLAG_AUTH_FAILED("200805","cardFlagAuthFailed"),
	/** 200020-：cardStatusAuthFailed:卡状态异常，请重试或更换其他卡**/
	CARD_STATUS_AUTH_FAILED("200804","cardStatusAuthFailed"),
	/** 200021-：userIsExistMsg:該用戶名已被佔用，請換一個試試**/
	USER_ISEXIST("020106","userIsExist"),
	/** 200022-：userLock:该账号已锁定，请24小时后再试或找回密码解锁**/
	USER_LOCK ("020201","userLock"),
	/** 000021-：failAbnormaleqt:异常设备登录**/
	FAIL_ABNORMALEQT("000021","failAbnormaleqt"),
	/** 200024-：abnormalEqt:超过90天未登录，请使用账户密码登录**/
	ABNORMAL_EQT("020402","abnormalEqt"),
	/** 020401-：failCountLimit:错误次数超过限制 **/
	FAIL_COUNT_LIMIT("020401","failCountLimit"),
	/** 050901-：noPwdBeOverride:未设定手势密码,或者被覆盖**/
	NO_PWD_BE_OVERRIDE("050901","noPwdBeOverride"),
	/** 031204-：deviceIdError:已在其他手机录入了手势密码，请在登录后重设**/
	DEVICE_ID_ERROR("031204","deviceIdError"),
	/** 020402-：deviceConflict:当前设备设置的密码已失效**/
	DEVICE_CONFLICT("020402","deviceConflict"),
	/** 200029-：patternPwdOverride:手势密码不存在或已覆盖，请重新设置。**/
	PATTERN_PWD_OVERRIDE_NOTEXIST("050807","patternPwdOverride"),
	/** 200030-：shaEncFail:SHA1加密失败**/
	SHA_ENC_FAIL ("030805","shaEncFail"),
	/** 200031-：passwordAlikeError与原密码一致，请重新设置**/
	PASSWORD_ALIKE_ERROR("051202","passwordAlikeError"),
	/** 051203-：passwordAlikeError与最近三次使用过的密码相同，请重新设置**/
	PASSWORD_ALIKE_LAST_THREE_TIMES_ERROR("051203","passwordAlikeLastThreeTimesError"),
	/** 200032-：resetFail 重置密码失败**/
	RESET_FAIL("030401","resetFail"),
	/** 200033-：errorAccountOrPwd 账号或者密码错误**/
	ERROR_ACCOUNT_OR_PWD("200033","errorAccountOrPwd"),
	/** 200034-：notLoginError账号未登录**/
	NOT_LOGIN_ERROR("000005","notLoginError"),

	/** 200035-：rsaDecException:RSA解密失败**/
	RSA_DEC_EXCEPTION("050801","rsaDecException"),
	/** 200036-：parserJsonFail:参数格式化异常**/
	PARSER_JSON_FAIL("200036","parserJsonFail"),
	/** 200037-：paramsMissing:参数缺失**/
	PARAMS_MISSING("200037","paramsMissing"),
	/** 200038-：modifyPwdFail:修改密码失败**/
	MODIFY_PWD_FAIL("200038","modifyPwdFail"),
	/** 200039-：tokenSignFail:TOKEN签名失败**/
	TOKEN_SIGN_FAIL("200039","tokenSignFail"),
	/** 200040-：pwdSaveFail:密码保存失败**/
	PWD_SAVE_FAIL("050806","pwdSaveFail"),
	/** 200041-：pwdSpecialChar:密码包含特殊字符**/
	PWD_SPECIAL_CHAR("020104","pwdSpecialChar"),
	/** 200042-：decryptFail:解密失败**/
	DECRYPT_FAIL("020102","decryptFail"),
	/** 200043-：opeaTimeOut:操作超时**/
	OPEA_TIME_OUT("030801","opeaTimeOut"),
	/** 030111-：userOrPwError:用户名或密码不正确**/
	USER_OR_PW_ERROR("030111","userOrPwError"),
	/** 200045-：bankcardIllegal:银行卡格式不正确**/
	BANKCARD_ILLEGAL("051801","bankcardIllegal"),
	/** 200046-：mobileTrue:当前手机和原手机号不一致，请输入原手机号**/
	MOBILE_TRUE("051701","mobileTrue"),
	/** 200047-：passwordLockFail:交易密码被锁定，请通过重置交易密码解锁**/
	PASSWORD_LOCK_FAIL("050611","passwordLockFail"),
	/** 200048-：passwordSameFail:密码和原来一致，请重新设置**/
	PASSWORD_SAME_FAIL("050612","passwordSameFail"),
	/** 020200-：userOrPwTimesError:是否忘记密码？再错误 {0}次将锁定账号**/
	USER_OR_PW_TIMES_ERROR("020200","userOrPwTimesError"),
	/** 020400-：wrongPwd:手势绘制错误，还可绘制{0}次**/
	WRONG_PWD("020400","wrongPwd"),
	/** 020401-：failCountLimitTimes:"手势累计绘错{0}次，手势密码失效，请用密码重新登录"**/
	FAIL_COUNT_LIMIT_TIMES("020401","failCountLimitTimes"),

	/** 050811-：tokenTimeout:指纹密码已过期失效（有效期{0}天），请在登录后重设**/
	TOKEN_TIMEOUT_FINGERPRINT("050906","tokenTimeout"),
	/** 020404-：tokenTimeoutGesture:手势密码已过期失效（有效期{0}天），请在登录后重设**/
	TOKEN_TIMEOUT_GESTURE("020404","tokenTimeoutGesture"),
	/** 020504-：wrongPwdFingerpring:指纹密码错误，还可绘制{0}次**/
	WRONG_PWD_FINGERPRINT("020504","wrongPwdFingerprint"),
	/** 020400-：wrongPwdGesture:手势密码错误，还可绘制{0}次**/
	WRONG_PWD_GESTURE("020400","wrongPwdGesture"),
	/** 020502-：noPwdBeOverrideFingerprint:未设定指纹密码,或者被覆盖**/
	NO_PWD_BE_OVERRIDE_FINGERPRINT("020502","noPwdBeOverrideFingerprint"),
	/** 020505-：deviceConflictFingerprint:当前设备设置的密码已失效**/
	DEVICE_CONFLICT_FINGERPRINT("020505","deviceConflictFingerprint"),
	/** 020503-：deviceIdErrorFingerprint:已在其他手机录入了指纹密码，请在登录后重设**/
	DEVICE_ID_ERROR_FINGERPRINT("020503","deviceIdErrorFingerprint"),
	/** 200055-：userIdIsNotEmpty:用户Id不能为空**/
	USER_ID_IS_NOTEMPTY("200055","userIdIsNotEmpty"),
	/** 200056-：userNameIsNotEmpty:用户名不能为空**/
	USERNAME_IS_NOTEMPTY("200056","userNameIsNotEmpty"),
	/** 200057-：referrCodeIsNotExit:推荐码不存在**/
	REFERRCODE_IS_NOTEXIT("200057","referrCodeIsNotExit"),
	/** 200058-：referrCodeIsNotEmpty:推荐码不能为空**/
	REFERRCODE_IS_NOTEMPTY("200058","referrCodeIsNotEmpty"),
	/** 200059-：categorySmenoNotEmpty:企业虚拟编号不能为空**/
	CATEGORY_SMENO_NOT_EMPTY("200059","categorySmenoNotEmpty"),
	/** 030112-：passwordError:密码错误**/
	PASSWORD_ERROR("030112","passwordError"),
	/** 200060-：frontSmsVerifyOtpFailed:短信验证码验证失败 **/
	Front_SMS_VERIFY_OTP_FAILED("200060","frontSmsVerifyOtpFailed"),
	/** 200061-：emailIsExist:邮箱已注册 **/
	EMAIL_IS_EXIST("200061","emailIsExist"),
	/** 200062-：emailIsBlack:邮箱是黑名单 **/
	EMAIL_IS_BLACK("200062","emailIsBlack"),
	/** 200063-：setTrustDeviceOptTypeNotEmpty:设置信任设备操作类型不能为空 **/
	SET_TRUST_DEVICE_OPT_TYPE__NOT_EMPTY("200063","setTrustDeviceOptTypeNotEmpty"),
	/** 200063-antiFraudBlocking：反欺诈阻断 **/
	ANTI_FRAUD_BLOCKING("200063","antiFraudBlocking"),
	/** 200064-pageNoParamError：pageNo参数错误 **/
	PAGE_NO_PARAM_ERROR("200064","pageNoParamError"),
	/** 200065-pageSizeParamError：pageSizeParamError **/
	PAGE_SIZE_PARAM_ERROR("200065","pageSizeParamError")
	;

	private String code;
	private String msg;
	
	private UserResponseInfo(String code,String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

	@Override
	public String toString() {
		StringBuffer strBuf = new StringBuffer();
		strBuf.append("{code:");
		strBuf.append(getCode());
		strBuf.append(",msg:");
		strBuf.append(FSResponseModel.getI18nMsg(this));
		strBuf.append("}");
		return strBuf.toString();
	}
}
